import request from '@/utils/request'

// 查询车厂信息列表
export function listcarFactoryInfo(query) {
  return request({
    url: '/factory/carFactoryInfo/list',
    method: 'get',
    params: query
  })
}

// 查询车厂信息详细
export function getcarFactoryInfo(id) {
  return request({
    url: '/factory/carFactoryInfo/' + id,
    method: 'get'
  })
}

// 新增车厂信息
export function addcarFactoryInfo(data) {
  return request({
    url: '/factory/carFactoryInfo',
    method: 'post',
    data: data
  })
}

// 修改车厂信息
export function updatecarFactoryInfo(data) {
  return request({
    url: '/factory/carFactoryInfo',
    method: 'put',
    data: data
  })
}

// 删除车厂信息
export function delcarFactoryInfo(id) {
  return request({
    url: '/factory/carFactoryInfo/' + id,
    method: 'delete'
  })
}

// 导出车厂信息
export function exportcarFactoryInfo(query) {
  return request({
    url: '/factory/carFactoryInfo/export',
    method: 'get',
    params: query
  })
}